//
//  BBCollectionViewModel.h
//  BBKit
//
//  Created by apple on 2019/7/1.
//  Copyright © 2019年 baobao. All rights reserved.
//

#import "BBBaseViewModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BBCollectionViewModel : BBBaseViewModel
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ collectionViewLayout)(UICollectionViewLayout *collectionViewLayout);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ delegate)(id<UICollectionViewDelegate> delegate);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ dataSource)(id<UICollectionViewDataSource> dataSource);

@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ allowsSelection)(BOOL allowsSelection);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ allowsMultipleSelection)(BOOL allowsMultipleSelection);

#pragma mark - UIScrollView
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ contentSize)(CGSize contentSize);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ contentOffset)(CGPoint contentOffset);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ contentInset)(UIEdgeInsets contentInset);

@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ bounces)(BOOL bounces);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ alwaysBounceVertical)(BOOL alwaysBounceVertical);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ alwaysBounceHorizontal)(BOOL alwaysBounceHorizontal);

@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ pagingEnabled)(BOOL pagingEnabled);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ scrollEnabled)(BOOL scrollEnabled);

@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ showsHorizontalScrollIndicator)(BOOL showsHorizontalScrollIndicator);
@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ showsVerticalScrollIndicator)(BOOL showsVerticalScrollIndicator);

@property(nonatomic,strong,readonly) BBCollectionViewModel *(^ scrollsToTop)(BOOL scrollsToTop);
@end

NS_ASSUME_NONNULL_END
